home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr52
/
rntx.zip
/
REINDEX.DOC
next >
Wrap
Text File
|
1993-04-01
|
2KB
|
35 lines
REINDEX.EXE
By Reg Moseley, Copyright (c) 1990 Regmo Systems, All rights reserved.
You'll see fancier index programs than this, but this one gets the job done
quickly and has the added flexibility to be used in a batch file (by setting
ERRORLEVEL on exit) and is network-aware ( but file are opened exclusively
during indexing ). REINDEX will read a standard ASCII text file for input
and parse each line into the database filename to be indexed, the index file
name to be created/replaced, and the index key expression used to determine
the key values. REINDEX expects the number sign '#' to be used as an inline
delimiter, but you can change it at anytime. I won't repeat the instructions
because you can read them yourself by entering REINDEX ? at the DOS prompt.
REINDEX is written in 100% Clipper Summer '87 source code - no ASM or C!
I've included the source code for your inspection. Improve it if you so
desire and leave me a note CompuServe 72301,1121 as to where the new and
improved source code has been uploaded. I think a menu-driven front end
with list-boxes would introduce unecessary complexity and reduce the speed
of the program. The text file provides a simple repository for a user's
data filenames, index filenames, and index key expressions. The text is no
problem for a power user to update, and a less knowledgable user could be
walked-thru an update on the phone with EDLIN (ugh!) if necessary. It's a
simple tool designed to create and update NTX indexes with little hassle.
Some the code may prove interesting to new Clipper programs who are just
getting their feet wet. Rick Spence originally wrote the buffered low-level
file functions ( e.g. BOPEN() ), and the parsing routine was the brainchild
of Steve Straley ( see PARSELINE() ). I'm not looking for money for this
program, nor have I the time to support it. With the source code, you can
debug, modify, tailor, and enhance until your heart is content...have fun!
Reggie